package com.scud.order.mapper;

import com.scud.model.PageDto;
import com.scud.model.order.pojo.OrderDetails;
import com.scud.model.order.vo.ManageOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author vermouth
 */
@Mapper
public interface OrderDetailsMapper {
    void addOrderDetails(@Param("list") List<OrderDetails> orderDetails);

    //根据订单id查询订单详情
    List<OrderDetails> selectByOrderId(Long orderId);

    //查询相关商家订单详情总数
    Long countByUserId(Long userId);
    //根据分页条件，查询商家订单详情信息
    List<ManageOrderVo> selectByManageQuery(PageDto dto, Long userId);


}
